var Ground = cc.Sprite.extend({
    _one: null,
    _two: null,
    ctor: function(){
        this._super();
    },
    init: function(){
        var bRet = false;
        if (this._super()) {
            var winSize = cc.Director.getInstance().getWinSize();
            
            var one = this._one, two = this._two;
            one = cc.Sprite.create(s_ground);
            one.setAnchorPoint(cc.p(0, 0));
            one.setPosition(cc.PointZero());
            this.addChild(one, 0, 1);
            
            two = cc.Sprite.create(s_ground);
            two.setAnchorPoint(cc.p(0, 0));
            two.setPosition(cc.p(winSize.width, 0));
            this.addChild(two, 0, 1);
            
            var move = cc.MoveBy.create(2.5, cc.p(-winSize.width, 0));
            this.runAction(cc.RepeatForever.create(cc.Sequence.create(cc.Place.create(cc.PointZero()), move)));
            
            bRet = true;
        }
        return bRet;
    }
});
Ground.create = function(){
    var g = new Ground();
    if (g && g.init()) {
        return g;
    }
    return null;
}